package org.rasterfun.language2.num

import org.rasterfun.language2.{NumKind, BinaryOp, Context}

/**
 * 
 * 
 * @author Hans Haggstrom
 */
abstract class BinaryMathOp(operator : String, a: Num, b: Num) extends BinaryOp[Num](operator, a, b) with Num

case class Add(a: Num, b: Num) extends BinaryMathOp("+", a, b)
case class Sub(a: Num, b: Num) extends BinaryMathOp("-", a, b)
case class Mul(a: Num, b: Num) extends BinaryMathOp("*", a, b)
case class Div(a: Num, b: Num) extends BinaryMathOp("/", a, b)

